<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <h1>表单提交</h1>
  <form action="/login" method="get">
    <label for="">用户名:</label>
    <input type="text" name="username">
    <br>
    <label for="">密码:</label>
    <input type="text" name="password">
    <br>
    <button>提交</button>
  </form>
  <h3>表单提交post请求</h3>
  <form action="/user/like" method="post">
    <label for="">喜欢:</label>
    <input type="text" name="like">
    <br>
    <label for="">年龄:</label>
    <input type="text" name="age">
    <button>提交</button>
  </form>
</body>
</html>